package com.ahways.system.controller;

import com.ahways.system.entity.Menu;
import com.ahways.system.service.MuneService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class MenuController {

    @Autowired
    private MuneService muneService;

    @GetMapping("menu/getMenu")
    public List<Menu> getMenu(){
        return muneService.getMenu();
    }

}
